package cn.hh.ymcc.constants;

/**
 *  异常枚举类
 */
public enum YmccError {

    No_EMPTY_EMP_NAME("4001","名字不能为空"),
    No_EMPTY_EMP_EMAIL("4002","邮箱不能为空"),

    COMMON_PHONE_NO_EMPTY("4101","手机号不能为空"),
    COMMON_SERIOUS("4102","验证码已发送,请一分钟后重试"),
    COMMON_PHONE_ILLEGAL("4103","手机号格式不正确"),

    USER_SMS_EMPTY("4201","短信验证码失效"),
    USER_SMSCODE_NOT_EQUALS("4202","验证码错误"),
    USER_EXISTS("4203","用户已注册"),





    ;

    // 错误码
    private String code;

    // 错误描述
    private String message;



    YmccError(String code) {
        this.code = code;
    }

    YmccError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
